package com.bootdo.common.task;

import com.bootdo.app.service.AppOrderService;
import com.bootdo.oa.domain.Response;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.messaging.simp.SimpMessagingTemplate;
import org.springframework.stereotype.Component;

@Component
public class FahongbaoJob implements Job {

    @Autowired
    private AppOrderService appOrderService;


    /**
     * 自动发放红包功能
     * @param arg0
     * @throws JobExecutionException
     */
    @Override
    public void execute(JobExecutionContext arg0) throws JobExecutionException {
        appOrderService.fafangHongbao();
    }

}